package com.cc.ndmall.promotion.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author oy
 * @email 1396004386@qq.com
 * @date 2020-11-06 12:49:07
 */
@Data
@TableName("ndmall_groupon")
public class GrouponEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer id;
	/**
	 * 关联的订单ID
	 */
	private Integer orderId;
	/**
	 * 参与的团购ID，仅当user_type不是1
	 */
	private Integer grouponId;
	/**
	 * 团购规则ID，关联ndmall_groupon_rules表ID字段
	 */
	private Integer rulesId;
	/**
	 * 用户ID
	 */
	private Integer userId;
	/**
	 * 创建者ID
	 */
	private Integer creatorUserId;
	/**
	 * 创建时间
	 */
	private Date addTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 团购分享图片地址
	 */
	private String shareUrl;
	/**
	 * 是否已经支付
	 */
	private Integer payed;
	/**
	 * 逻辑删除
	 */
	private Integer deleted;

}
